﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XbsWebAPI.EntityFrameworkCore.Entities.Enums;

namespace XbsWebAPI.EntityFrameworkCore.Entities
{
    /// <summary>
    /// 房间
    /// </summary>
    public class Room: XbsBasicClass
    {
        /// <summary>
        /// 房间名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 房间绑定状态 0-未绑定，1-已绑定
        /// </summary>
        public RoomBindingStatus RoomBindingStatus { get; set; }

        /// <summary>
        /// 房间使用状态 0-空房，1-在住，2-预定，3-待续住,4-待退房,,5-已退房
        /// </summary>
        public RoomUsingStatus RoomUsingStatus { get; set; }
        
        /// <summary>
        /// 房间密码
        /// </summary>
        public string Password { get; set; }


        /// <summary>
        /// 房型Id（绑定房间后进行关联，取消绑定后清空）
        /// </summary>
        public Guid? HouseTypeId { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnabled { get; set; }

        /// <summary>
        /// 房型
        /// </summary>
        public virtual HouseType HouseType { get; set; }
    }
}
